{"ast":null,"code":"/** converting camel-cased strings to be lowercase and link it with Separato */\nexport function toLowercaseSeparator(key) {\n  return key.replace(/([A-Z])/g, '-$1').toLowerCase();\n}\nexport function getStyleStr(style) {\n  return Object.keys(style).map(key => `${toLowercaseSeparator(key)}: ${style[key]};`).join(' ');\n}\n/** Returns the ratio of the device's physical pixel resolution to the css pixel resolution */\nexport function getPixelRatio() {\n  return window.devicePixelRatio || 1;\n}\n/** Rotate with the watermark as the center point */\nexport function rotateWatermark(ctx, rotateX, rotateY, rotate) {\n  ctx.translate(rotateX, rotateY);\n  ctx.rotate(Math.PI / 180 * Number(rotate));\n  ctx.translate(-rotateX, -rotateY);\n}","map":{"version":3,"names":["toLowercaseSeparator","key","replace","toLowerCase","getStyleStr","style","Object","keys","map","join","getPixelRatio","window","devicePixelRatio","rotateWatermark","ctx","rotateX","rotateY","rotate","translate","Math","PI","Number"],"sources":["/data/messenger.client/node_modules/antd/es/watermark/utils.js"],"sourcesContent":["/** converting camel-cased strings to be lowercase and link it with Separato */\nexport function toLowercaseSeparator(key) {\n  return key.replace(/([A-Z])/g, '-$1').toLowerCase();\n}\nexport function getStyleStr(style) {\n  return Object.keys(style).map(key => `${toLowercaseSeparator(key)}: ${style[key]};`).join(' ');\n}\n/** Returns the ratio of the device's physical pixel resolution to the css pixel resolution */\nexport function getPixelRatio() {\n  return window.devicePixelRatio || 1;\n}\n/** Rotate with the watermark as the center point */\nexport function rotateWatermark(ctx, rotateX, rotateY, rotate) {\n  ctx.translate(rotateX, rotateY);\n  ctx.rotate(Math.PI / 180 * Number(rotate));\n  ctx.translate(-rotateX, -rotateY);\n}"],"mappings":"AAAA;AACA,OAAO,SAASA,oBAAoB,CAACC,GAAG,EAAE;EACxC,OAAOA,GAAG,CAACC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAACC,WAAW,EAAE;AACrD;AACA,OAAO,SAASC,WAAW,CAACC,KAAK,EAAE;EACjC,OAAOC,MAAM,CAACC,IAAI,CAACF,KAAK,CAAC,CAACG,GAAG,CAACP,GAAG,IAAK,GAAED,oBAAoB,CAACC,GAAG,CAAE,KAAII,KAAK,CAACJ,GAAG,CAAE,GAAE,CAAC,CAACQ,IAAI,CAAC,GAAG,CAAC;AAChG;AACA;AACA,OAAO,SAASC,aAAa,GAAG;EAC9B,OAAOC,MAAM,CAACC,gBAAgB,IAAI,CAAC;AACrC;AACA;AACA,OAAO,SAASC,eAAe,CAACC,GAAG,EAAEC,OAAO,EAAEC,OAAO,EAAEC,MAAM,EAAE;EAC7DH,GAAG,CAACI,SAAS,CAACH,OAAO,EAAEC,OAAO,CAAC;EAC/BF,GAAG,CAACG,MAAM,CAACE,IAAI,CAACC,EAAE,GAAG,GAAG,GAAGC,MAAM,CAACJ,MAAM,CAAC,CAAC;EAC1CH,GAAG,CAACI,SAAS,CAAC,CAACH,OAAO,EAAE,CAACC,OAAO,CAAC;AACnC"},"metadata":{},"sourceType":"module"}